<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/erp/css/style.css" type="text/css"/>
</head>
<body>
<table cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <th>ID</th>
        <th>商品名称</th>
        <th>供应商</th>
        <th>商品产地</th>
        <th>进价</th>
        <th>单位</th>
        <th width="20%">操 作</th>
    </tr>
    <c:forEach items="${goodses}" var="st">
        <tr>
            <td>${st.gid}</td>
            <td>${st.gname}</td>
            <td>${st.merc}</td>
            <td>${st.place}</td>
            <td>${st.inprice}</td>
            <td>${st.unit}</td>

            <td align="center"><a class="button white" href="${pageContext.request.contextPath}/goodsCtrl?parm=toEdit&gid=${st.gid}">修改</a>&nbsp;&nbsp;
                <a class="button white" href="${pageContext.request.contextPath}/goodsCtrl?parm=delete&gid=${st.gid}"
                   onclick="return confirm('确定删除？');">删除</a></td>
        </tr>
    </c:forEach>

</table>
<div align="center">
    <a class="button blue" href="${pageContext.request.contextPath}/goods/add.jsp">新 增</a>
</div>
</body>
</html>
